import { useRef } from "react";

export function useRefNow<T>(t: T) {
  const ref = useRef<T>(t);
  ref.current = t;
  return ref;
}



